package com.huage.courseplatform.satoken.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="表单登录参数",description="表单登录参数")
public class FormLoginPARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "手机号或邮箱不能为空")
    @ApiModelProperty(value = "手机号或邮箱",required = true)
    private String username;

    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
}
